package com.easthome.service;

import com.easthome.entity.Goods;
import com.easthome.pojo.form.GoodsPageConForm;
import com.easthome.pojo.vo.GoodsVO;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @author cxiaoy
 * @Date 2022/10/14 14:35
 */
public interface GoodsService {
    List<GoodsVO> goodsList();

    Goods goodsById(Integer id);

    int updateGoods(Goods goods);

    int addGoods(Goods goods);

    int deleteGoods(Integer goodsId);

    int deleteBatch(List<Integer> ids);

    List<Goods> getGoodsList();

    PageInfo getGoodsListPage(Integer pageNum);

    PageInfo getGoodsListPageCon(Integer pageNum, GoodsPageConForm goodsPageConForm);
}
